# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file '/home/tmp/home/fang/prog/python/pushbox-pyqt-me/main_window.ui'
#
# Created: Sun Nov  6 16:02:20 2011
#      by: PyQt4 UI code generator 4.8.6
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    _fromUtf8 = lambda s: s

class newTableWidget(QtGui.QTableWidget):
    def __init__(self, parent=None):
        super(newTableWidget, self).__init__(parent)
        
    def mousePressEvent(self, event):
        self.button = event.button()
        QtGui.QTableWidget.mousePressEvent(self,event)

class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(800, 590)
        MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "Pushbox_Py by funlove@newsmth", None, QtGui.QApplication.UnicodeUTF8))
        self.centralWidget = QtGui.QWidget(MainWindow)
        self.centralWidget.setObjectName(_fromUtf8("centralWidget"))
        self.groupBox = QtGui.QGroupBox(self.centralWidget)
        self.groupBox.setGeometry(QtCore.QRect(10, 10, 121, 131))
        self.groupBox.setTitle(QtGui.QApplication.translate("MainWindow", "Domain size", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.btnChangeSize = QtGui.QPushButton(self.groupBox)
        self.btnChangeSize.setGeometry(QtCore.QRect(10, 90, 101, 28))
        self.btnChangeSize.setText(QtGui.QApplication.translate("MainWindow", "Change size", None, QtGui.QApplication.UnicodeUTF8))
        self.btnChangeSize.setObjectName(_fromUtf8("btnChangeSize"))
        self.spin_Column = QtGui.QSpinBox(self.groupBox)
        self.spin_Column.setGeometry(QtCore.QRect(70, 60, 41, 23))
        self.spin_Column.setMinimum(1)
        self.spin_Column.setMaximum(20)
        self.spin_Column.setProperty("value", 6)
        self.spin_Column.setObjectName(_fromUtf8("spin_Column"))
        self.label = QtGui.QLabel(self.groupBox)
        self.label.setGeometry(QtCore.QRect(10, 30, 41, 16))
        self.label.setText(QtGui.QApplication.translate("MainWindow", "Rows:", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setObjectName(_fromUtf8("label"))
        self.spin_Row = QtGui.QSpinBox(self.groupBox)
        self.spin_Row.setGeometry(QtCore.QRect(70, 30, 41, 23))
        self.spin_Row.setMinimum(1)
        self.spin_Row.setMaximum(20)
        self.spin_Row.setProperty("value", 6)
        self.spin_Row.setObjectName(_fromUtf8("spin_Row"))
        self.label_2 = QtGui.QLabel(self.groupBox)
        self.label_2.setGeometry(QtCore.QRect(10, 60, 57, 15))
        self.label_2.setText(QtGui.QApplication.translate("MainWindow", "Columns:", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setObjectName(_fromUtf8("label_2"))
#        self.tableWidget = QtGui.QTableWidget(self.centralWidget)
        self.tableWidget = newTableWidget(self.centralWidget)
        self.tableWidget.setEnabled(True)
        self.tableWidget.setGeometry(QtCore.QRect(150, 10, 631, 571))
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setBold(True)
        font.setWeight(75)
        self.tableWidget.setFont(font)
        self.tableWidget.viewport().setProperty("cursor", QtGui.QCursor(QtCore.Qt.ArrowCursor))
        self.tableWidget.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
        self.tableWidget.setAccessibleDescription(_fromUtf8(""))
        self.tableWidget.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.tableWidget.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.tableWidget.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
        self.tableWidget.setTabKeyNavigation(False)
        self.tableWidget.setProperty("showDropIndicator", False)
        self.tableWidget.setDragDropOverwriteMode(False)
        self.tableWidget.setSelectionMode(QtGui.QAbstractItemView.NoSelection)
        self.tableWidget.setTextElideMode(QtCore.Qt.ElideMiddle)
        self.tableWidget.setWordWrap(False)
        self.tableWidget.setCornerButtonEnabled(False)
        self.tableWidget.setRowCount(6)
        self.tableWidget.setColumnCount(6)
        self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
        self.tableWidget.horizontalHeader().setVisible(True)
        self.tableWidget.horizontalHeader().setDefaultSectionSize(30)
        self.tableWidget.verticalHeader().setMinimumSectionSize(15)
        self.btnSolve = QtGui.QPushButton(self.centralWidget)
        self.btnSolve.setGeometry(QtCore.QRect(10, 150, 121, 28))
        self.btnSolve.setText(QtGui.QApplication.translate("MainWindow", "Find Solution", None, QtGui.QApplication.UnicodeUTF8))
        self.btnSolve.setObjectName(_fromUtf8("btnSolve"))
        self.groupBox_2 = QtGui.QGroupBox(self.centralWidget)
        self.groupBox_2.setGeometry(QtCore.QRect(10, 260, 120, 161))
        self.groupBox_2.setTitle(QtGui.QApplication.translate("MainWindow", "Review", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.btnInitReview = QtGui.QPushButton(self.groupBox_2)
        self.btnInitReview.setGeometry(QtCore.QRect(10, 30, 101, 28))
        self.btnInitReview.setText(QtGui.QApplication.translate("MainWindow", "Review mode", None, QtGui.QApplication.UnicodeUTF8))
        self.btnInitReview.setObjectName(_fromUtf8("btnInitReview"))
        self.spin_Review = QtGui.QSpinBox(self.groupBox_2)
        self.spin_Review.setGeometry(QtCore.QRect(20, 70, 81, 81))
        font = QtGui.QFont()
        font.setPointSize(22)
        self.spin_Review.setFont(font)
        self.spin_Review.setObjectName(_fromUtf8("spin_Review"))
        self.lblStatus = QtGui.QLabel(self.centralWidget)
        self.lblStatus.setGeometry(QtCore.QRect(10, 490, 131, 51))
        self.lblStatus.setText(_fromUtf8(""))
        self.lblStatus.setObjectName(_fromUtf8("lblStatus"))
        self.chkDead = QtGui.QCheckBox(self.centralWidget)
        self.chkDead.setGeometry(QtCore.QRect(0, 430, 140, 20))
        self.chkDead.setText(QtGui.QApplication.translate("MainWindow", "Show Dead Points", None, QtGui.QApplication.UnicodeUTF8))
        self.chkDead.setChecked(False)
        self.chkDead.setObjectName(_fromUtf8("chkDead"))
        self.progressBar = QtGui.QProgressBar(self.centralWidget)
        self.progressBar.setGeometry(QtCore.QRect(10, 550, 131, 23))
        self.progressBar.setProperty("value", 24)
        self.progressBar.setObjectName(_fromUtf8("progressBar"))
        self.btnStop = QtGui.QPushButton(self.centralWidget)
        self.btnStop.setGeometry(QtCore.QRect(10, 180, 121, 28))
        self.btnStop.setText(QtGui.QApplication.translate("MainWindow", "Stop", None, QtGui.QApplication.UnicodeUTF8))
        self.btnStop.setObjectName(_fromUtf8("btnStop"))
        self.btnContinue = QtGui.QPushButton(self.centralWidget)
        self.btnContinue.setGeometry(QtCore.QRect(10, 210, 121, 28))
        self.btnContinue.setText(QtGui.QApplication.translate("MainWindow", "Continue", None, QtGui.QApplication.UnicodeUTF8))
        self.btnContinue.setObjectName(_fromUtf8("btnContinue"))
        self.chkPassage = QtGui.QCheckBox(self.centralWidget)
        self.chkPassage.setGeometry(QtCore.QRect(0, 460, 141, 20))
        self.chkPassage.setText(QtGui.QApplication.translate("MainWindow", "Show Passages", None, QtGui.QApplication.UnicodeUTF8))
        self.chkPassage.setObjectName(_fromUtf8("chkPassage"))
        MainWindow.setCentralWidget(self.centralWidget)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        pass


if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    MainWindow = QtGui.QMainWindow()
    ui = Ui_MainWindow()
    ui.setupUi(MainWindow)
    MainWindow.show()
    sys.exit(app.exec_())

